import request from '../utils/request'

// 渲染数据
export const userhandle = () => request({
    // url: 'http://localhost:10777/doctor',
    url: 'http://10.7.164.51:10777/doctor',
    method: 'GET',
})

// 获取 medal 药品信息
export const medal = () => request({
    url: "http://10.7.164.51:10777/medical",
    // url: "http://localhost:10777/medical",
    method: 'GET',
})

// 获取全部hpv信息
export const allHpv = () => request({
    url: "http://10.7.164.51:10777/hpv",
    // url: "http://localhost:10777/hpv",
    method: 'GET',
})

// 获7天hpv信息
export const sevenHpv = () => request({
    url: "http://10.7.164.51:10777/seven",
    // url: "http://localhost:10777/seven",
    method: 'GET',
})

// 获24小时hpv信息
export const hoursHpv = () => request({
    url: "http://10.7.164.51:10777/hours",
    // url: "http://localhost:10777/hours",
    method: 'GET',
})

// 获15天hpv信息
export const fiveHpv = () => request({
    url: "http://10.7.164.51:10777/five",
    // url: "http://localhost:10777/five",
    method: 'GET',
})

// 获取当前登录用户
export const getCurrentUser = () => request({
    url: '/api/v1/doctor/users/current',
    method: 'GET',
 })

